#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QFileDialog>
#include <QFontDialog>
#include <QColorDialog>
#include <QFile>
#include <QVector>
#include "myQThread.h"

QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

private slots:
    void setPBtnEnable(bool flag);
    void updateLabel(QString name);

    void on_pushButton_clicked();

    void on_pushButton_2_clicked();

    void on_actionopenfile_triggered();

    void on_actionfont_triggered();

    void on_actioncolor_triggered();

private:
    Ui::MainWindow *ui;
    QVector<QString> name;
    myQThread *thread;
};
#endif // MAINWINDOW_H
